// 弹出框部分
var close_picture=document.getElementsByClassName('fixed_picture')[0]
var close_div=document.getElementsByClassName('close')[0]
close_div.onclick =function(){
    close_picture.style.display="none";
}

// 底部选中变色
var lis=document.getElementsByClassName('same-li')
for(var i=0;i<lis.length;i++){
    var item_li=lis[i];
    item_li.onclick=function(){
        for(var j=0;j<lis.length;j++){
            var li=lis[j];
            li.className='same-li'
        }
        this.className='same-li color_first'

    }
}

$(window).scroll(function(){
    // console.log($(window).scrollTop())
    var scroll_height = $(window).scrollTop();
    if(scroll_height >= 250){
       fixednav.style.backgroundColor = 'orange';
        // search_header.className = 'header-wrapper bg-orange';
    }
    else{
        // search_header.className = 'header-wrapper';
        fixednav.style.backgroundColor = 'transparent';
    }
})